import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import {
	Button,
	Calendar,
	Cell,
	CellGroup,
	Tabbar,
	TabbarItem,
	Icon,
	NavBar,
	Form,
	Field,
	Uploader,
	Grid,
	GridItem,
	NoticeBar,
	Swipe,
	SwipeItem,
	Collapse,
	CollapseItem,
	List,
	Image as VanImage,
} from "vant";
import { Toast } from "vant";
import CHeader from "./component/header.vue";

Vue.use(Button);
Vue.use(Calendar);
Vue.use(Cell);
Vue.use(CellGroup);
Vue.use(Tabbar);
Vue.use(TabbarItem);
Vue.use(Icon);
Vue.use(VanImage);
Vue.use(NavBar);
Vue.use(Form);
Vue.use(Field);
Vue.use(Uploader);
Vue.use(Grid);
Vue.use(GridItem);
Vue.use(NoticeBar);
Vue.use(Swipe);
Vue.use(SwipeItem);
Vue.use(Collapse);
Vue.use(CollapseItem);
Vue.use(List);

Vue.component("c-header", CHeader);

Vue.prototype.$Toast = Toast;
Vue.config.productionTip = false;

new Vue({
	router,
	store,
	render: (h) => h(App),
}).$mount("#app");
